package com.yuexia.sell.service.Interface;

import com.yuexia.sell.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author itmrchen
 * @date 2018/7/11 0011 下午 2:35
 * @desc ctrate by YUE XIA
 */
public interface OrderService {

    //创建订单
    OrderDTO create (OrderDTO orderDTO);

//    查询单个订单
    OrderDTO findOne (String id);

//    查询订单列表        根据openid
    Page<OrderDTO> finByOpenid(String openid, Pageable pageable);

//    取消订单
    OrderDTO cancel (OrderDTO orderDTO);

//    完结订单
    OrderDTO finish (OrderDTO orderDTO);

//    支付订单
    OrderDTO paid (OrderDTO orderDTO);
}

